const { MongoDataSource } = require('apollo-datasource-mongodb')

class Tags extends MongoDataSource {
  getTags () {
    // const articles = this.model.find().select('tagList').exec(function (err, list) {
    //   console.log('list:', list)
    // })
    return  this.model.find().select('tagList')
  }
}

module.exports = Tags
